﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="Sun, 1 Jan 2000 01:00:00 GMT" />


<link rel="stylesheet" type="text/css" href="/testssh/css/base.css" />
<script type="text/javascript" src="/testssh/js/base.js"></script>
<script type="text/javascript" src="/testssh/js/jquery.js"></script>
<script type="text/javascript" src="/testssh/js/jquery.hotkeys.js"></script>

<script type="text/javascript">
    $(document).ready(function() {
        $(".close").click(function() {
            $(this).parent().hide("slow");
        });

        $(".asset_table tr:odd").addClass("alt");
        $(".zebra_even tr:even").addClass("alt");

        /*
        setInterval("get_unread()", 6000);

        jQuery.hotkeys.add('h', function (){window.location="/"});
        jQuery.hotkeys.add('a', function (){window.location="/asset/add/"});
        jQuery.hotkeys.add('c', function (){window.location="/message/compose/"});
        jQuery.hotkeys.add('p', function (){window.location="/post/"});
        jQuery.hotkeys.add('x', function (){window.location="/logout/"});
       */

    });

    function get_unread() {
        /*
        $.post("/message/unread/", function(data) {
            if(data == "0") {
                $(".unread").text("");
            }
            else {
                $(".unread").text("(" + data + "封未读)");
            }
        });
        */
    }


    function verify() {
        var email = $("#email").val();
        var password = $("#password").val();
        var feedback = $("#feedback");

        $(".errmsg").remove();

        if(email.indexOf("@") == -1 || email.indexOf(".") == -1) {
            feedback.append('<p class="errmsg">请输入有效的email地址</p>');
            return false;
        }

        if(password == "") {
            feedback.append('<p class="errmsg">请输入密码</p>');
            return false;
        }

        return true;
    }

</script>
</head>
<body bgcolor="#ffffff">
<a name="top"></a>
<table width="960px" align="center">
    <tr valign="bottom">
        <td align="right" width="100%">

        <table width="100%">
            <tr align="right">
                <td colspan="2">
                    <a href="/login/">登录</a>&nbsp;|
                    <a href="/register/">注册</a>
                </td>
            </tr>
            <tr class="dotted_bottom">
                <td align="left" valign="bottom" rowspan=2>
                    &nbsp;&nbsp;
                    <a href="/"><span class="h2">首 页</span></a>&nbsp;&nbsp;
                </td>
            </tr>
        </table>

        </td>
    </tr>
</table>
<table class="content" width="960px" align="center" cellspacing="20px">

    <tr>
        <td>
            <span class="title">用户登录 . . .</span>
        </td>
        <td width="300px">&nbsp;</td>
    </tr>
    <tr>
        <td valign="top">
            <form name="login" method="post" action="/testssh/cm/login" onsubmit="return verify();">
            <table>
            <tr>
                <td align="right">Email&nbsp;</td>
                <td>
                    <input id="email" class="graybox" name="email" type="text"
                        maxlength="64" size="30" value="" />&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td align="right">密码&nbsp;</td>
                <td>
                    <input id="password" class="graybox" name="password" type="password"
                        maxlength="32" size="30" value="" />&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <br>
                    <input type="submit" value="登录">&nbsp;&nbsp;&nbsp;&nbsp;<a href="/forget_password">忘

记密码了？</a>
                </td>
            </tr>
            <tr>
                <td></td>
                <td id="feedback"><br></td>
            </tr>
            </table>
            </form>
        </td>
        <td valign="top">
        <div class="box" cellpadding="4">
            <br>友情提示：<br><br>
            1. 填写左侧注册表单，按"登录"。<br><br>
            2. 如果你忘记了密码, 点击"忘记密码了？"的链接。<br><br>
        </div>
        </td>
    </tr>

</table>
<br style="clear:both;" />

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1240467-2";
urchinTracker();
</script>
<br/>
</body>
</html>
